package com.skynet.supervision.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
@AllArgsConstructor
public enum FilesType {
    one("文件类型一","0"),
    two("文件类型二","1"),
    three("文件类型三","2");
    @Getter
    private final String status;
    @Getter
    private final String code;

    public static FilesType of(String code) {
        if (code != null) {
            for (FilesType s : FilesType.values()) {
                if (s.getCode().equals(code)) {
                    return s;
                }
            }
        }
        return null;

    }
}
